//
// Created by zx208 on 2024/10/16.
//

#include "../../define.h"
#include <stdio.h>
#include <stdlib.h>

#define MAX_SIZE 100

#ifndef __SEQUENCELIST_H
#define __SEQUENCELIST_H

typedef int ElemType;

typedef struct{
    ElemType *elem;
    int length; // 当前长度
//    int listsize; // 当前分配的存储容量
} SqList;

Status Insert_SL(SqList *L, ElemType e, int pos);
Status Init_SL(SqList *L, int length);
int GetIndexByValue(SqList *L, int e);
Status DeleteByIndex_SL(SqList *L, int pos, ElemType *e);
Status DeleteByValue1(SqList *L, ElemType x);
Status DeleteByValue2(SqList *L, ElemType x);

#endif //__SEQUENCELIST_H
